Worldwide television tuning system with country code based tuning

ABSTRACT

A worldwide television tuning system is configurable to the television standards and channel frequencies of multiple different countries based on a country&#39;s ITU long-distance country code. The tuning system maintains a country code table listing a plurality of countries according to their ITU codes. The tuning system also maintains multiple channel-to-frequency mapping tables that correlate channel numbers to corresponding frequencies for associated countries in the country table. The country table indexes the channel-to-frequency mapping tables. During configuration, a user or application selects a particular country by passing in the ITU code. The tuning system uses the ITU code to locate an entry for that country in the country code table. The table entry contains an index to an associated channel-to-frequency mapping table for the selected country. The tuning system loads and saves the channel-to-frequency mapping table for subsequent use. The channel-to-frequency table also identifies the appropriate television standard for the selected country. During tuning, the user or application enters a particular channel number. The tuning system uses the channel number to lookup a corresponding television frequency in the channel-to-frequency table. The tuning system then tunes to the television frequency. The tuning system stores a set of tuning frequencies for corresponding channels within a particular locale. If the tuning system is transported to another locale and then back to the original locale, the tuning frequencies may be retrieved from memory to restore operation within the original locale, rather than having to reconfigure the system.

RELATED APPLICATIONS

This application claims priority under 35 U.S.C. §120 as a continuationof U.S. patent application Ser. No. 09/057,786, filed Apr. 8, 1998, andtitled “Worldwide Television Tuning System with Counter Code BasedTuning”, the entire disclosure of which is hereby incorporated byreference in its entirety

TECHNICAL FIELD

This invention relates to tuning systems for broadcast televisionsignals. More particularly, this invention relates to worldwide tuningsystems that are configurable to various broadcast television standardsand channel frequencies used throughout the world.

BACKGROUND

Analog video standards for broadcast television differ from country tocountry. The broadcast television standard used here in the UnitedStates, for example, is different than the broadcast standard used inFrance. Conventional standards include multiple versions of NTSC(National Television Standards Committee), multiple versions of PAL(Phase Alternate Line), and multiple versions of SECAM (SequentialCouleur Avec Memoire).

Broadcast frequencies also change from country to country. Each countryis assigned a range of frequencies to allot to its domestic televisionbroadcast service. An international governing body known as the“International Telecommunications Union” or “ITU” governs the allocationof broadcast frequencies among the various countries.

The country-by-country discrepancies among broadcast standards andchannel frequencies pose a problem for television manufacturers. Sinceeach country employs a particular standard and operates within aparticular range of frequencies, manufacturers must tailor theirtelevisions to the country into which they are to be sold.Traditionally, the manufacturers have hardwired the televisions duringmanufacturing to comply with the standard and frequency requirements ofthe destination country.

FIG. 1 shows the hardware components of a broadcast television, 20. Itincludes a tuner 22, a crossbar 24, a video decoder 26, a display 28,and speaker(s) 30. The tuner 22 tunes to a particular channel frequencyto receive a broadcast television signal, which carries both video andaudio data. The tuner 22 separates an analog video signal from an analogaudio signal. The crossbar 24 routes the analog video signal to thevideo decoder 26, which converts the analog video signal to digitalvideo data used to drive the display 28. The crossbar 24 also routes theanalog audio signal to the speaker(s) or other audio components 30. Itis noted that FIG. 1 represents a more modern television, which hasdigital capabilities. In older televisions, the crossbar 24 routes theanalog video signal directly to the display 28 for depiction.

Under conventional manufacturing techniques, televisions used indifferent countries have different tuners 22 and video decoders 26.Televisions shipped in the United States are equipped with tuners andvideo decoders compatible with the U.S. broadcast standards andfrequencies, whereas televisions shipped to other countries are equippedwith different tuners and video decoders that are compatible with theirbroadcast standards and frequencies.

Country-based customization is inefficient because the manufacturer mustmake several versions of a product. In addition to broadcast standardsand frequencies, the manufacturer might also have to contend with otherregional differences, such specialized audio decoders for a particularmarket, or variations in picture tubes (e.g., 525 v. 625 lineoperation). The customization plays havoc with inventories because anoverabundance of televisions for one country may not be cross-sold intoanother country where demand is strong.

To partially address this problem, manufacturers began using tuners anddecoders that support multiple standards and frequencies. With thisimprovement, manufacturers are able to mass-produce one version of thetelevision using the same components regardless of the destinationcountry. Prior to shipping, the manufacturers program the tuner anddecoder at the factory to a desired television standard and frequencyrange for the destination country.

While this is an improvement, it is not ideal. Video standards employedwithin a country may change. A country might decide to reallocate thebroadcast frequencies, or perhaps adopt a different television standard,for political, administrative, or technical reasons. Televisionsprogrammed at the factory are not capable of accommodating thesechanges. Accordingly, there is a need to design a television tuningsystem that may be upgraded in the field.

Another problem concerns portability. In the past, televisions sold intoone country would typically reside in that country for the life of theproduct. It was less common for people to transport their televisions todifferent countries, unless they were permanently moving.

Today, as television tuner hardware decreases in size and continues tofall in component cost, it can be incorporated into portable computingdevices, such as laptop computers. Given the portable nature of thesecomputing devices, it is very likely that they will be used in numerousdifferent locations throughout the world that employ differenttelevision standards and channel frequencies. Thus, there is a need fora worldwide television tuning system that is reconfigurable in the fieldto adapt to different television standards and channel frequencies.

SUMMARY

This invention concerns a worldwide tuning system that may beimplemented in televisions, computing devices, or other televisionbroadcast receiving units. The worldwide tuning system is configurableto the television standards and channel frequencies of multipledifferent countries, and is reconfigurable in the event any of theseparameters change. As a result, the worldwide tuning system may betransported to different countries and reconfigured to local televisionbroadcasts. Additionally, the worldwide tuning system is upgradable inthe field to accommodate any changes in television standards and channelfrequencies used in various countries.

The worldwide tuning system is configurable based on a country's ITUlong-distance country code. The tuning system maintains a country codetable listing a plurality of countries according to their ITU codes. Forinstance, the United States has an ITU code of 1 and France has an ITUcode of 33. The tuning system also maintains multiplechannel-to-frequency mapping tables that provide television standardsand correlate channel numbers to corresponding frequencies forassociated countries in the country table. The country table indexes thechannel-to-frequency mapping tables.

During configuration, a user or application selects a particular countryby passing in the ITU code. The tuning system uses the ITU code tolocate an entry for that country in the country code table. The tableentry contains an index to an associated channel-to-frequency mappingtable for the selected country. The tuning system then loads and savesthe channel-to-frequency mapping table for subsequent use until a newand different ITU code is passed in. The tuning system utilizes thetelevision standard listed in the channel-to-frequency mapping table fordecoding broadcast television signals in the selected country.

During tuning, the user or application enters a particular channelnumber. The tuning system uses the channel number to lookup acorresponding television frequency in the channel-to-frequency table.The tuning system then tunes to the television frequency.

In one implementation, the television tuning system is configured as acombination hardware/software architecture. The hardware componentsinclude tuner circuitry to tune to various television frequenciescarrying television video signals and video decoder circuitry coupled toreceive a television video signal from the tuner circuitry and toconvert the television video signal to digital video data. A softwarelayer overlying the hardware layer includes a tuner module coupled toadjust the tuner circuitry to a particular television frequency and avideo decoder module to decode the digital video data according to aparticular video standard.

The tuner module implements the country code table and the multiplechannel-to-frequency mapping tables. The tuner module is implemented asa replaceable dynamic linked library (DLL). The tuner module supports anapplication program interface (API) to expose the DLL's functionality toan application program. In the event changes are made to broadcasttelevision standards and channel frequencies within one or morecountries, and as new countries are created or old countries cease toexist, a new tuner DLL can be downloaded and used to replace theout-of-date DLL without affecting operation of the tuning system.

The tuner module selects a channel-to-frequency mapping table based uponinput of a particular country and outputs a video standard to the videodecoder for use in decoding the digital video data. The tuner moduleselects a television frequency from the selected channel-to-frequencymapping table based upon input of a corresponding channel and outputsthe selected television frequency to the tuner circuitry to cause thetuner circuitry to tune to the selected television frequency.

As a result, a manufacturer can make one television product, which canbe shipped anywhere in the world. Once arriving at a particular country,the television product can be configured to the standards andfrequencies of that country either automatically, or via a simple userinterface.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a prior art television tuner.

FIG. 2 is a diagrammatic illustration of a broadcast television system.

FIG. 3 is a block diagram of a broadcast-enabled viewer unit configuredfor TV reception.

FIG. 4 is a block diagram of a worldwide tuning system implemented inthe viewer unit of FIG. 3.

FIG. 5 is a diagrammatic illustration of a country code table andmultiple channel-to-frequency mapping tables, and the indexing betweenthe tables.

FIG. 6 is a flow diagram showing steps in a method for configuring theworldwide tuning system of FIG. 4.

FIG. 7 is a flow diagram showing steps in a method for changing channelsusing the worldwide tuning system of FIG. 4.

BRIEF DESCRIPTION OF THE APPENDIX

An attached appendix forms part of this document. The appendix containsa description of methods implemented in a tuner API (application programinterface) utilized by the worldwide tuning system.

DETAILED DESCRIPTION

This invention concerns a worldwide tuning system that is configurableto different broadcast television standards and channel frequencies usedby various countries according to the countries' ITU long-distancecountry code. The worldwide tuning system may be implemented intelevisions, computing devices, or other television broadcast receivingunits. One example context for implementing the worldwide tuning systemis described below.

Broadcast System

FIG. 2 shows a broadcast system 50 having a broadcast transmitter 52that broadcasts video and audio signals over a broadcast medium 54 tobroadcast-enabled viewer units 56(a)-56(d). The broadcast medium 54 isrepresentative of different types of distribution technologies, such assatellite, RF, cable, and the Internet. The broadcast transmitter 52 isrepresentative of different technologies that are appropriate for thedistribution medium, such as a satellite transmitter, RF transmitter,microwave transmitter, cable head end, and video server.

Three different broadcast-enabled viewer units are shown in FIG. 2.Viewer unit 56(a) is a wireless television that receives broadcastsignals over a wireless medium, such as satellite or RF networks. Viewerunit 56(b) is a cable-enabled television having a set-top box 58 forreceiving video broadcast over a cable network. Viewer unit 56(c) is abroadcast-enabled personal computer (PC) that is capable of receiving abroadcast video stream from the broadcast medium (e.g., satellite,Internet, cable, etc.) and playing the video on a computer monitor orother display device. One example implementation of a broadcast-enabledPC is described in a co-pending U.S. patent application Ser. No.08/503,055, entitled “Broadcast-Enabled Personal Computer,” filed Jan.29, 1996 in the names of Gabe L. Newell, Dan Newell, Steven J. Fluegel,David S. Byrne, Whitney McCleary, James O. Robarts, Brian K. Moran;William B. McCormick, T. K. Backman, Kenneth J. Birdwell, Joseph S.Robinson, Alonzo Gariepy, Marc W. Whitman, and Larry Brader. Thisapplication is assigned to Microsoft Corporation, and is incorporatedherein by reference. Viewer unit 56(d) is a portable computer that isequipped with a broadcast tuner to receive broadcast signals.

Each viewer unit 56 is equipped with a worldwide tuning system thattunes to a particular broadcast frequency to receive video and audiosignals and processes the signals according to a particular broadcaststandard for output to a display and sound subsystem. The worldwidetuning system flexibly adapts to various broadcast standards andbroadcast frequencies of different countries around the world. As aresult, a manufacturer can produce just one version of a viewer unitthat can be used anywhere in the world. Once the viewer unit resides ina particular country, the worldwide tuning system unit can be configuredto the standards and frequencies of that county.

FIG. 3 shows an exemplary implementation of a viewer unit 56. Itincludes a broadcast receiver 60 (e.g., RF antenna, satellite dish,cable box, network card, etc.), a central processing unit 62,tuner/decoder circuitry 64, an input device 66 (e.g., keyboard, mouse,remote control, etc.), a display 68 (e.g., television, VGA monitor,etc.), and a sound subsystem 70. These components are coupled via abusing structure 72 that includes, for example, parallel and serialcommunications interfaces. The tuner/decoder circuitry 64 tunes thebroadcast receiver 60 to the appropriate frequency and decodes incominganalog signals. It is noted that the tuner/decoder circuitry 64 may beimplemented as a chipset within the central processing unit 62.

The central processing unit 62 has a processor 74 and memory 76 (e.g.,RAM, ROM, Flash, disk drive, floppy disk drive, CD-ROM, etc.). Anoperating system 78 is stored in memory 76 and executed on processor 74when the viewer unit is turned on. The operating system 78 is preferablya multitasking operating system that allows simultaneous execution ofmultiple applications. One preferred operating system is a Windows brandoperating system sold by Microsoft Corporation, such as Windows CE, orWindows 95, or Windows NT or other derivative versions of Windows.

The viewer unit 56 runs a multimedia application 80 that providesprocessing support of the streaming video and analog signals receivedover the broadcast receiver. The multimedia application 80 is stored inmemory 74 and executed on the processor 72. In the illustratedimplementation, the multimedia application 80 is implemented using atechnology known as Microsoft DirectShow, which provides playbackmultimedia streams from local files or Internet servers, and capture ofmultimedia streams from devices.

The multimedia application includes a modular arrangement of pluggablecomponents known as “filters” which are connected together at interfacepoints known as “pins” (referenced generally as number 82 in FIG. 3). Afilter is a COM (component object model) object that performs a specifictask on a data stream, such as decompressing video data. For eachstream, the filter exposes at least one pin. A pin is a COM objectcreated by the filter that represents a point of connection for aunidirectional data stream on the filter. Input pins accept data intothe filter, and output pins provide data to other filters. A typicaltransform filter has one input pin and one output pin. A source filterhas one output pin for each data stream and a destination filter has oneinput pin. More complex filter arrangements are also possible.

Filters are arranged in a configuration called a “filter graph”. Duringconstruction, a developer uses a component called the “filter graphmanager” to connect the filters and control the stream's data flow.

Here, the filters 82 of the multimedia application 80 are configured tocontrol underlying hardware elements in the tuner/decoder circuitry 64associated with reception and playback of a broadcast signal. Themultimedia application 80 also has a layer of drivers 84 that interfacethe filters 82 with the tuner/decoder circuitry 64.

Worldwide Tuning System

FIG. 4 shows a hardware/software architecture of a worldwide tuningsystem 100. The architecture has three layers: a software layer offilters 82, a software layer of drivers 84, and a hardware layercomprising the tuner/decoder circuitry 64. The tuner/decoder circuitry64 has a tuner 102 that receives an analog broadcast signal at aparticular broadcast frequency. The tuner is capable of tuning to a widerange of frequencies allotted to different countries.

The tuner 102 separates the broadcast signal into two analog datasignals: a video signal and an audio signal. The audio and video signalsare routed through crossbar 104 to an audio decoder 106 and a videodecoder 108, respectively. In this implementation, the audio decoder 106converts the analog signal to digital audio data, which is passed to thesound subsystem 70 for further processing to provide such qualities assurround sound. In another implementation, the audio decoder passes theanalog signal through without digitizing it. In this case, the audiodecoder is used to control other parameters, such as volume.

The video decoder 108 converts the analog video signal to digital videodata. The video decoder 108 is preferably a multistandard analog decoderthat is capable of decoding video signals using one of a variety ofvideo standards. The digital video data is stored in the memory 76 ofthe central processing unit 62 (FIG. 3), which is accessible by thefilters 82 for processing the video data prior to display.

The worldwide tuning system 100 implements a filter graph 82 thatprograms the hardware tuner/decoder circuitry 64 to the appropriatefrequencies and standards used in various countries of the world. Thefilter graph 82 includes a tuner filter 110, a crossbar filter 112, anaudio filter 114, and a video decoder filter 116. These filterscorrespond to respective hardware components in the tuner/decodercircuitry 64, and namely the tuner 102, crossbar 104, audio decoder 106,and video decoder 108. Other filters in graph 82 include an overlaymixer filter 118, a video renderer filter 120, a tee filter 122, aclosed captioning (CC) filter 124, an electronic programming guide (EPG)filter 126, and a broadcast data filter 128. The VBI filters are proxiesfor underlying kernel level software drivers: CC driver 125, EPG driver127, and BC data driver 129. Although three VBI filters are shown inFIG. 4 for discussion purposes, other VBI filters can be used inaddition to, or in place of, the ones shown. A “line 21” decoder filter131 is also provided in the filter graph 82.

Each filter has at least one input pin (represented by a box with a “>”sign inside on the left side of a filter) or at least one output pin(represented by a box with a “>” sign inside on the right side of afilter). Several filters have both an input pin and an output pin, andsome filters have multiple input and/or output pins. Data flows from thetuner filter 110 through the various filters as indicated by the arrowsconnecting output pins of preceding filters to input pins of the nextfilters.

The drivers 84 provide an interface between the filters 82 andcorresponding hardware components 64. The tuner filter 110 controls thetuning frequency of the tuner 102 via a tuner driver 130. The crossbarfilter 112 submits routing instructions to the crossbar 104 via acrossbar driver 132. The audio filter 114 uses an audio driver 134 tocontrol the audio decoder 106, and the video decoder filter 116 employsa video decoder driver 136 to manage the video decoder 108. The videorenderer filter 120 provides display data to a display driver 138, whichin turn provides pixel data to the display 68. A tee driver 123 is akernel level instantiation of the tee filter 122. As noted above, the CCdriver 125, EPG driver 127, and BC data driver 129 correspond to, andfacilitate data flow for, the CC filter 124, the EPG filter 126, and BCdata filter 128, respectively.

The worldwide tuning system 100 is configurable to different broadcaststandards and broadcast frequencies based on ITU long-distance countrycodes. An ITU long-distance country code is the international callingcode assigned by the International Telecommunications Union tofacilitate international telephone calls. The ITU code is the numberthat precedes the area code in an international telephone call. The ITUcode for the United States is “01” or just “1”. The ITU codes uniquelyidentify the countries in the world.

The tuner filter 110 has an ITU country code table 140 that lists all ofthe participating countries or territories in the world according totheir ITU codes. The tuner filter 110 also maintains multipleinternational channel-to-frequency mapping tables 142 that providebroadcast standards and correlate channels and broadcast frequencies inindividual countries. There might be one channel-to-frequency table foreach country, or it may be possible for two or more countries to sharethe same channel-to-frequency conversion. It is further noted that onecountry might have more than one table in the event that separateregions within the country require a different broadcast standard ordifferent channel-to-frequency mappings.

The worldwide tuning system 100 exposes an application program interface144 (discussed below and in the Appendix) that can be used duringconfiguration to select the correct country. The API enablesapplications to set video standards, set TV channels, and to get or setinformation about the channel frequencies. A configuration applicationallows a user to enter the correct country by typing in or selecting acountry name, or abbreviation, via a user interface. The configurationapplication can convert the user-entered country to a correspondingcountry code and then call an API function to pass in country code tothe worldwide tuning system. Once the country code is input, theworldwide tuning system 100 automatically adjusts to the appropriatebroadcast standards and group of broadcast frequencies for the country.

FIG. 5 shows the relationship between the country code table 140 andvarious channel-to-frequency tables 142. The country code table 140lists the countries by their ITU long-distance codes. The country codetable 140 also correlates broadcast standards with particular countries.In this illustration, the country code table 140 lists the United State,which has an ITU code of 1 and employs the NTSC standard, and France,which has an ITU code of 33 and utilizes the SECAM/L standard.

The ITU country code table 140 contains indexes to correspondingchannel-to-frequency tables 142. In FIG. 5, the table entries for USAand France index to corresponding channel-to-frequency tables 142(1) and142(33). The channel-to-frequency tables 142 in turn map channels in thecountries to appropriate cable and broadcast frequencies for thosecountries. The channel-to-frequency tables 142 also contain theappropriate video standards for the countries. The Francechannel-to-frequency table 142(33), for example, correlates channelnumbers 2, 3, 4, . . . , J with associated cable and broadcastfrequencies, and identifies the SECAM/L standard.

FIG. 6 shows steps in a method for automatically configuring theworldwide tuning system 100 to a particular video standard and set offrequencies. At step 150, the tuner filter 110 receives a particularcountry or ITU country code via API 144. More specifically, anapplication uses the method “IAMTVTUNER::put_CountryCode” to select acountry. The tuner filter 110 uses the country or ITU country code toperform a lookup operation in the country code table 140 (step 152 inFIG. 6). The referenced table entry is then used to index theappropriate channel-to-frequency table 142 (step 154). The tuner filter110 loads 23 and stores the indexed channel-to-frequency table 142 forsubsequent tuning 24 operations (step 156). A method“IAMTVTUNER::put_TuningSpace” sets the locale specific ID and a method“IAMTVTUNER::StoreAutoTune” saves all locale specific optimal tuningfrequencies for later recall.

Locale specific tuning is an advantageous feature of this worldwidetuning system. It is particularly useful for portable situations. Forinstance, suppose a user is located in Seattle, Wash., USA. The usermight configure the worldwide tuning system to the Seattle locale using“IAMTVTUNER:: put_TuningSpace”. All channels in Seattle are scanned foroptimal tuning frequencies and are then stored via“IAMTVTUNER::StoreAutoTune” as a file or other data record.

Now, suppose the user travels to Paris, France, taking along a portableviewer unit. The user can then reconfigure the worldwide tuning systemto the Paris locale using “IAMTVTUNER::put_TuningSpace”. All channels inParis are scanned for optimal tuning frequencies and are then stored ina second file via “IAMTVTUNER::StoreAutoTune”.

When the user returns to Seattle with the portable viewer unit, theworldwide tuning system can simply retrieve the file with optimalfrequencies for that locale. The worldwide tuning system is immediatelyrestored for operation in Seattle, without reconfiguration andrescanning. As a result, the portable viewer unit is immediatelyavailable for TV viewing in Seattle. Similarly, the user could return toParis and retrieve the stored frequency file for that locale, as well.

Once a mapping table 142 for a particular country is loaded, theworldwide tuning system 100 tunes to particular frequencies uponselection of various channels. At step 158, the tuner filter 110receives a particular channel via API 144. The method“IAMTVTUNER::put_Channel” is called to input the channel number. Thetuner filter 110 uses the channel to lookup the corresponding frequencyin the channel-to-frequency table 142 (step 160 in FIG. 6). The tunerfilter 110 passes the frequency to the tuner driver 130, which tunes thehardware tuner 102 (step 162). The tuner driver 130 responds withinformation regarding the quality of the signal received at thatfrequency (step 164). If the quality is not optimal, the tuner filter110 uses a search algorithm to scan for the best possible signal withinthe channel (step 166 in FIG. 6). The method “IAMTVTUNER::AutoTune” iscalled to scan for a precise signal on the channel's frequency.

Filter Graph Data Flow Architecture

With continuing reference to FIG. 4, the tuner filter 110 communicatestuning changes to the other filters synchronously while providing thecontrol instructions to the underlying tuner driver 130 and tuner 102.At the beginning and end of each tuning operation, the tuner filter 110sends a packet 170 downstream to all filters connected in the graph 82.The packet 170 contains information regarding the tuning operation inprogress. The packet 170 includes the country code, the channel beingtuned, the video standard, and flags indicating whether this is thebeginning or end of the tuning operation. As an example, the packet 170can be implemented as a data structure KS_TVTUNER_CHANGE_INFO, asfollows: typedef struct tagKS_TVTUNER_CHANGE_INFO { DWORD dwFlags;//DS_TVTUNER_CHANGE_* DWORD dwCountryCode; //ITU Country Code DWORDdwAnalogVideoStandard; //Current Analog Video Standard DWORD dwChannel;//Channel Number } KS_TVTUNER_CHANGE_INFO, *PKS_TVTUNER_CHANGE_INFO;

KS_TVTUNER_CHANGE_BEGIN_TUNE Tuning operation is beginningKS_TVTUNER_CHANGE_END_TUNE Tuning operation is complete

The crossbar filter 112 routes the packet to the video decoder filter116 and audio filter 114. Even though the packet may not contain anyaudio instructions, the packet notifies the audio filter 114 when atuning operation is beginning and ending. In response, the audio filtermutes the audio output between the time it receives a beginning packetand an ending packet to prevent output of noise or a distorted sound.

The video decoder filter 116 passes the packet 170 on to tee filter 122and overlay mixer filter 118. The tee filter 122 replicates the packetand supplies it to the closed captioning filter 124, the EPG filter 126,and the broadcast data filter 128. These filters 124-128 detect whetherthe packet 170 is for beginning or ending a tuning operation. During thetuning transition, these filter 124-128 cease decoding the data becausethe data might become corrupted in the interim. The overlay mixer filter118 passes the packet onto the video renderer filter 120.

The video decoder filter 116 extracts the video standard from the packet170 to determine which standard is being used in the video data stream.This information, in turn, determines which VBI (vertical blankinginterval) lines to decode. The video decoder filter 116 includes a VBIcomponent 172 and a video capture component 174. Depending on the videostandard, the VBI component 172 decodes certain lines of data containedin the digital video data output by the video decoder 108. This VBI datais passed to the tee filter 122, where it is sent for processing to theclosed captioning filter 124, the EPG filter 126, and the broadcast datafilter 128. The tee filter 122 does not replicate the data; rather, thedata is treated as being read-only and a single copy is simultaneouslypassed to each of the VBI decoders.

The VBI data might include closed captioning information for the closedcaptioning filter 124, data used by the EPG filter 126 to create orupdate an electronic programming guide, or other data collected by thedata filter 128 to provide stock quotes, whether, news, and so forth. Asnoted above, many other types of VBI codecs may be used to decode manydifferent type of data embedded in the VBI portion of the televisionsignal. The closed captioning filter 124 outputs data to a “line 21”decoder filter 131, which decodes the CC data. The decoder filter 131passes the closed captioning data on to the overlay mixer filter 118,where it is combined with the video data.

The video capture component 174 decodes the digital video data from thevideo decoder 108 according to the video standard contained in thepacket 170. Additionally, the video capture component 174 might furtherprocess or enhance the video data stream.

The video decoder filter 116 outputs the video data to the overlay mixerfilter 118 where it is combined with the closed captioning data. Theoverlay mixer filter processes the video data and outputs the stream tothe video renderer filter 120 for rendering. The video renderer filter120 outputs the video data stream to the display driver 138, whichdrives the display 66.

To illustrate data flow through the worldwide tuning system 100, FIG. 7shows steps in a method for changing channels. At step 180, the tunerfilter 110 receives a new channel via API 144 (i.e.,IAMTVTUNER::put_Channel). The tuner filter 110 uses the channel tolookup a corresponding broadcast or cable frequency in thechannel-to-frequency table 142 (step 182 in FIG. 7). The tuner filter110 generates a beginning packet that contains the country code, the newchannel, the video standard, and a flag indicating the start of thetuning operation (step 184). The tuner filter 110 passes the beginningpacket to the downstream filters to inform them of the impending tuningoperation (step 186). In response, some downstream filters (e.g., audiofilter 114, closed captioning filter 124, EPG filter 126, data filter128) cease processing the current data stream to avoid processingcorrupt or incomplete data.

At step 188 in FIG. 7, the tuner filter 110 outputs the new frequency tothe tuner driver 130, which tunes the tuner 102 to the new channel. Fineadjustment may then be performed as described above with respect tosteps 164 and 166 in FIG. 6.

After the tuner 102 is tuned to the new channel, the tuner filter 110generates an ending packet that contains the country code, the newchannel, the video standard, and a flag indicating the end of the tuningoperation (step 190). In response, the downstream filters beginprocessing the data stream.

Tuner API

The tuner filter 110 implements an API that enables applications to setvideo standards, set TV channels, and to get or set information aboutthe channel frequencies. This interface can also determine what analogvideo standards your TV supports. Generally, the API includes methodsfor performing the following functions:

-   -   1. Retrieve pointers to supported interfaces    -   2. Increment reference count of tuner filter object    -   3. Decrement reference count of tuner filter object    -   4. Retrieve all analog video TV standards supported by the tuner    -   5. Retrieve the current analog video TV standard in use    -   6. Set the TV channel    -   7. Retrieve current TV channel    -   8. Retrieve the highest and lowest channels available    -   9. Scan for a precise signal on the channel's frequency    -   10. Set the country code to establish the frequency set    -   11. Retrieve the country code    -   12. Set a storage index for regional channel to frequency        mappings    -   13. Retrieve the storage index for regional fine tuning    -   14. Retrieve the number of TV sources plugged into the tuner        filter    -   15. Set the tuner input type (cable or antenna)    -   16. Retrieve the tuner input type (cable or antenna)    -   17. Set the hardware tuner input connection    -   18. Retrieve the hardware tuner input connection    -   19. Retrieve the current video frequency    -   20. Retrieve the current audio frequency

A detailed list of the methods in the tuner API is provided in theAppendix to this disclosure. This Appendix is incorporated into thedisclosure.

Upgrading Worldwide Tuner

Video standards employed within a country may change from time to timefor various reasons. For instance, governments might reallocatebroadcast frequencies or adopt a different video standard for political,administrative, or technical reasons, or countries may be created orcease to exist. Due to these changes, the channel-to-frequency mappingtables within the tuner filter 110 may output erroneous frequency valuesor erroneous video standards.

In one implementation, the filters 82 are configured as dynamic linkedlibraries (DLLs). Any one filter may be replaced dynamically withoutrestarting the system. For instance, in the event that certain broadcastfrequencies have changed, a manufacturer or other provider can provide anew tuner filter DLL with updated channel-to-frequency tables thatreflect the new broadcast frequencies. This tuner filter DLL can replacethe existing, out-of-date tuner filter.

The new filter DLLs may be downloaded using several different means. Asexamples, the filter DLLs might be downloaded over the Internet, orbroadcast as VBI data, or distributed on disk.

The worldwide tuning system is advantageous over prior art tuningsystems. The tuning system enables worldwide tuning based on ITU countrycode, allowing it to be configured in the field rather than at thefactory. Additionally, if standards or channel frequencies change, thetuning system can be reconfigured.

Another benefit is that the worldwide tuning system is portable. Theworldwide tuning system can be implemented in portable computers andreconfigured to receive different television broadcasts as the usertravels to different countries.

Another benefit is that the worldwide tuning system can be implementedas replaceable DLLs that are accessed via a set of APIs. As changes aremade to broadcast television standards and channel frequencies, new DLLscan be downloaded and used to replace out-of-date DLLs without affectingoperation of the system.

Although the invention has been described in language specific tostructural features and/or methodological steps, it is to be understoodthat the invention defined in the appended claims is not necessarilylimited to the specific features or steps described. Rather, thespecific features and steps are disclosed as preferred forms ofimplementing the claimed invention.

1. One or more computer readable media comprising computer-executableinstructions that, when executed, configure a computer to exposefunctionality of the computer-executable instructions to an applicationvia an application programming interface to: receive an ITU(International Telecommunications Union) code for a particular country;and select, based on the ITU code, a set of TV channel-to-TV frequencymappings for use in the particular country
 2. One or more computerreadable media as recited in claim 1, wherein the computer-executableinstructions further cause the computer to select, based on the ITUcode, a TV standard for use in the particular country.
 3. One or morecomputer readable media as recited in claim 1, wherein thecomputer-executable instructions further cause the computer to store theselected set of TV channel-to-TV frequency mappings.
 4. One or morecomputer readable media comprising computer-executable instructionsthat, when executed, configure a computer to expose functionality of thecomputer-executable instructions to an application via an applicationprogramming interface to: receive a reference to a country; select,based on the country reference, a set of channel-to-frequency mappingscorrelating channels to corresponding TV frequencies in the country;receive a channel; and select, based on the channel, a TV frequency thatmaps to the channel;
 5. One or more computer readable media as recitedin claim 4, wherein the computer-executable instructions further causethe computer to tune to the TV frequency.
 6. One or more computerreadable media as recited in claim 4, wherein the country reference isan ITU (International Telecommunications Union) code.
 7. One or morecomputer readable media as recited in claim 4, wherein thecomputer-executable instructions further cause the computer to select,based on the country reference, a TV standard for the country.
 8. One ormore computer readable media as recited in claim 4, wherein thecomputer-executable instructions further cause the computer to scan fora better quality frequency within the channel.
 9. One or more computerreadable media as recited in claim 4, wherein the selection of a set ofchannel-to-frequency mappings includes: looking up the country in acountry table that lists multiple countries; and indexing from an entryfor the country in the country table to a particularchannel-to-frequency table, the particular channel-to-frequency tablecontaining mappings of channel numbers to TV frequencies for thecountry.
 10. One or more computer readable media as recited in claim 9,wherein the selection of a TV frequency includes looking up in theparticular channel-to-frequency table a TV frequency that corresponds tothe channel.
 11. A method comprising: executing a module on a computer;and exposing the execution of the module to an application program to:receive data regarding a selected country; map to channels available forthe selected country; receive data regarding a selected channel; map toan appropriate video standard based on at least one of the selectedcountry and selected channel; and, format a tuning component to theappropriate video standard.
 12. A method as recited in claim 11, whereinthe data is an International Telecommunications Union (ITU) code.